package ModifiersTest.pk1;

public class Aoo {
    public int a;    //本类、派生类、同包类、异包类
    protected int b; //本类、派生类、同包类
    int c;           //本类、同包类
    private int d;   //本类
    void show(){
        a = 11;
        b = 21;
        c = 31;
        d = 41;
    }

    public static void main(String[] args) {
        Aoo o = new Aoo();
        o.show();
        System.out.println("a="+o.a);
        System.out.println("b="+o.b);
        System.out.println("c="+o.c);
        System.out.println("d="+o.d);//同类中除了能访问public、protect、默认修饰符修饰的变量，还能访问private修饰的变量

    }


}

